package com.software.human;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.software.human.activity.UserInfoListActivity;

public class MainActivity extends AppCompatActivity {

    private Button btn_welcome;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initViews();
        initEvents();
    }

    private void initEvents() {
        btn_welcome.setOnClickListener(v -> {
            // 跳转到list列表显示界面
            Intent intent = new Intent(this, UserInfoListActivity.class);
            startActivity(intent);
        });
    }

    private void initViews() {
        btn_welcome = findViewById(R.id.btn_welcome);
    }
}